<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      >
      
    
    
 
	<ui:composition template="../WEB-INF/templates/template.xhtml">
		<ui:param name="title" value="Fact Entry System" />
        		
		<ui:define name="header">
			<ui:include src="../WEB-INF/templates/header.xhtml" />    
		</ui:define>
		
		<ui:define name="menu">		
			<ui:include src="../WEB-INF/templates/menuLeft.xhtml" />               
		</ui:define>
		
		<ui:define name="content">
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" />
		<script src="http://code.highcharts.com/highcharts.js"></script>
		<script src="http://code.highcharts.com/modules/exporting.js"></script>
		
		
		
		 <div id="container">
		   
         </div>
   
			
         
 		<script type="text/javascript">
$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
    
            chart: {
                renderTo: 'container',
                type: 'column'
            },
    
            title: {
                text: 'Total fruit consumtion, grouped by gender'
            },
    
            xAxis: {
                categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
            },
    
            yAxis: {
                allowDecimals: false,
                min: 0,
                title: {
                    text: 'Number of fruits'
                }
            },
    
            tooltip: {
                formatter: function() {
                    return '&#60;b&#62;'+ this.x +'&#60;/b&#62;&#60;br/&#62;'+
                        this.series.name +': '+ this.y +'&#60;br/&#62;'+
                        'Total: '+ this.point.stackTotal;
                }
            },
    
            plotOptions: {
                column: {
                    stacking: 'normal'
                }
            },
    
            series: [{
                name: 'John',
                data: [5, 3, 4, 7, 2],
                stack: 'male'
            }, {
                name: 'Joe',
                data: [3, 4, 4, 2, 5],
                stack: 'male'
            }, {
                name: 'Jane',
                data: [2, 5, 6, 2, 1],
                stack: 'female'
            }, {
                name: 'Janet',
                data: [3, 0, 4, 4, 3],
                stack: 'female'
            }]
        });
    });
    
});
 		</script>       
		
         
			</ui:define>
		
		<ui:define name="footer">
	       <ui:include src="../WEB-INF/templates/footer.xhtml" />    
		</ui:define>
		
	</ui:composition>
	
</html>